function C = blockdct( Img, X, Y )
% BLOCKDCT Provede DCT na bloku 8x8 o souradnicich X,Y v obrazku Img
B = Img(Y:(Y+7), X:(X+7));
C = dct2(double(B)/255 - 0.5);
end

